From 53014d01322a24349cf1f7d54cf95c0fccddf2d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sat, 6 Sep 2014 19:46:27 +0200 Subject: [PATCH] inspector: Don't unref NULL objects When closing the application window before closing the inspector window, the selected widget will be set to NULL once and all the property pages will try to g_object_weak_unref that NULL widget, so bail out in gtk_inspector_prop_list_set_object if it's NULL. https://bugzilla.gnome.org/show_bug.cgi?id=736201 --- gtk/inspector/prop-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/inspector/prop-list.c b/gtk/inspector/prop-list.c index c28e16ed02..707e4a234c 100644 --- a/gtk/inspector/prop-list.c +++ b/gtk/inspector/prop-list.c @@ -334,7 +334,7 @@ gtk_inspector_prop_list_set_object (GtkInspectorPropList *pl, guint num_properties; guint i; - if (pl->priv->object == object) + if (pl->priv->object == object || !object) return FALSE; cleanup_object (pl); -- 2.30.2